<?php
/*
|--------------------------------------------------------------------------
| Test Routes
|--------------------------------------------------------------------------
*/

$router->group(['prefix' => 'test','namespace' => 'Test'], function () use ($router) {
    // ConfigController
    $router->get('/config', 'ConfigController@index');

    // HashidController
    $router->get('/hashid', 'HashidController@index');

    // RepositoryController
    $router->get('/repository', 'RepositoryController@index');
    $router->post('/repository/create', 'RepositoryController@store');
    $router->get('/repository/show/{id}', 'RepositoryController@show');

    // ServiceController
    $router->get('/service', 'ServiceController@index');
    $router->post('/service/create', 'ServiceController@store');
    $router->get('/service/show/{id}', 'ServiceController@show');

    // ServiceFacadeController
    $router->get('/service/facade', 'ServiceFacadeController@index');
    $router->post('/service/facade/create', 'ServiceFacadeController@store');
    $router->get('/service/facade/show/{id}', 'ServiceFacadeController@show');

    // ValidatorController
    $router->get('/validator', 'ValidatorController@index');
    $router->post('/validator/create', 'ValidatorController@store');
    $router->get('/validator/show/{id}', 'ValidatorController@show');

    // ValidatorController
    $router->get('/resource', 'ResourceController@index');
    $router->post('/resource/create', 'ResourceController@store');
    $router->get('/resource/show/{id}', 'ResourceController@show');

    // ExceptionController
    $router->get('/exception', 'ExceptionController@index');
    $router->get('/exception/business', 'ExceptionController@business');

    // ExceptionController
    $router->get('/passport', 'PassportController@index');
    $router->get('/passport/login', 'PassportController@login');
    $router->post('/passport/password/test', 'AccessTokenController@test');
    $router->post('/passport/password/token', 'AccessTokenController@issueToken');

    // MailController
    $router->get('/mail', 'MailController@index');
});